<script src="/pbl/static/js/jquery-1.7.1.min.js"></script>
<script type="text/javascript">
    function stopall() {
        if(top.ajaxGet!=null) top.ajaxGet.abort();
        if (!!(window.attachEvent && !window.opera)) {
            document.execCommand("stop");
        } else {
            window.stop();
        }
    }

    <?php if($_REQUEST['url'] != ""){?>
    stopall();
    top.listmax = 0;
    $("#stage>li", top.window.document).html("");
    $("#s_url", top.window.document).val("<?php echo urldecode($_REQUEST['url']);?>");
    $("select[name='gather_type']", top.window.document).find("option").each(function (data) {
        $(this).removeAttr("selected");
        if ($(this).text().replace(/从/, '') == "<?php echo urldecode($_REQUEST['listtype']);?>") {
            $(this).attr("selected", true);
            $("#B2", top.window.document).trigger("click");
            return false;
        }
    });
    <?php }?>
</script>
